<?php
/**
 * @title 399. 除法求值 -
 * @author start2004
 */

// ini_set("memory_limit", "128M");


class Solution {

    /**
     * @param String[][] $equations
     * @param Float[] $values
     * @param String[][] $queries
     * @return Float[]
     */
    function calcEquation($equations, $values, $queries) {
        /**
         * @since 2021-01-06 哈希所有结果集
         */
        $hashs = [];
        for($i=0,$len=count($equations); $i<$len; $i++){
            $hashs[$equations[0]][$equations[1]] = $values[$i];
        }





        /**
         * @return
         */
        return $result;
    }
}


/**
 * @url http://127.0.0.1/leetcode/202008/2020.08.14_6.php
 */
$datas = [
    [
        [["a","b"],["b","c"]],
        [2.0, 3.0],
        [["a", "c"], ["b", "a"], ["a", "e"], ["a", "a"], ["x", "x"]],
    ]
];

include_once dirname(__DIR__) . DIRECTORY_SEPARATOR ."xhprof.php";
$xhprof = new Xhprof();
foreach ($datas as $data){
    var_dump($data);

    $obj = new Solution();
    $result = $obj->calcEquation($data[0], $data[1], $data[2]);
    var_dump($result);
    echo str_repeat("<br>", 3);
}
$xhprof->end();
